<?php
include_once 'mod.php';
$mod = new mod();
$mysql = $mod->link();
$id = $_GET['id'];
$sql = "delete from goods where id = $id";
$result = $mod->IDU($mysql,$sql);
if ($result['flag']){
    echo '删除成功<a href="index2.php">返回首页</a>';
}else{
    echo '删除失败:'.$result['msg']. '<a href="index2.php">返回首页</a>';
}
